home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 2
/
AACD 2.iso
/
AACD
/
WebSites
/
MailingLists
/
AMOSLIST.0799
/
000093_nobody_Tue Jul 20 18:48:52 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-08-02
|
3KB
Received: from onelist.com (pop.onelist.com [209.207.164.223])
by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id SAA07134
for <mcox4@osf1.gmu.edu>; Tue, 20 Jul 1999 18:48:51 -0400 (EDT)
Received: (qmail 29476 invoked by alias); 20 Jul 1999 22:48:31 -0000
Received: (qmail 18682 invoked from network); 20 Jul 1999 19:48:15 -0000
Received: from unknown (HELO web903.mail.yahoo.com) (128.11.23.78) by pop.onelist.com with SMTP; 20 Jul 1999 19:48:15 -0000
Message-ID: <19990720194700.17753.rocketmail@web903.mail.yahoo.com>
Received: from [62.188.142.210] by web903.mail.yahoo.com; Tue, 20 Jul 1999 20:47:00 BST
Date: Tue, 20 Jul 1999 20:47:00 +0100 (BST)
From: =?iso-8859-1?q?Claude=20Heiland-Allen?= <cheilandallen@yahoo.co.uk>
To: amos-list@onelist.com
Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
Delivered-To: mailing list amos-list@onelist.com
Precedence: bulk
List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
Reply-to: amos-list@onelist.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Subject: Re: [amos-list] Inserting data into memory banks
Status: O
X-Status:
From: =?iso-8859-1?q?Claude=20Heiland-Allen?= <cheilandallen@yahoo.co.uk>
Hi
--- Declan Gorman <declan_gorman@modusmedia.com>
wrote:
> have just started.
> Firstly, the project is just a small utility that
> reads digest emails
> created at onelist.com and converts them to
> Amigaguide files. So my program
Usually it is best to generate output as you read the
input, so there isn't lots of hassle moving things
around in memory. You should be able to get away with
reading one line at a time and processing that, if the
digest format is anything sensible.
> looks for specific keywords and adds the appropriate
> amigaguide command text
> into the email which is stored in memory. Once
Eh? Is this for adding links between mails to follow
keywords, or to follow threads? Or are the "keywords"
parts of the email header?
> The problem that I am having is that when I add
> the amigaguide command
> text to the file it over-writes existing text and
> what I want is to insert
> it and move everything else along not unlike a text
> editor. I am thinking
> that I will have to copy parts of the memory bank
> but am checking if there
> is an easier way to do it. Any ideas?
You could have a linked list containing sections of
text, this would minimise copying. Have a new node in
the list for each line, and then if that line needs
commands it can be split into lots of nodes, so only
the data on that line has to be copied.
Example:
This is
some /example/ text
for conversion.
1: "This is"
2: "some "
3: "@{i}"
4: "example"
5: "@{ui}"
6: " text"
7: "for conversion."
No real commands, just using /italics/ as an example.
Hope this helps.
Claude
_____________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
--------------------------- ONElist Sponsor ----------------------------
Congratulations SAYNO2DRUGS. Our latest ONElist of the week.
http://www.onelist.com
How is ONElist changing YOUR life? Visit our homepage and let us know!
------------------------------------------------------------------------
Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html